package com.hdoit.kylin.logical.studentManager.service.impl;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.kylin.logical.studentManager.dao.IExcel_headDao;
import com.hdoit.kylin.logical.studentManager.model.Excel_head;
import com.hdoit.kylin.logical.studentManager.service.IExcel_headService;
import com.hdoit.kylin.logical.viewmodel.Excel_headSearch;
/**
* @author luozhicheng
* @email
* @createtime 2017年07月18日 20:16:49
* @comment
*/
@Component
public class Excel_headServiceImpl extends SuperService<Excel_head> implements IExcel_headService{
	
	
	private IExcel_headDao excel_headDao;
	public IExcel_headDao getExcel_headDao() {
		return excel_headDao;
	}
	@Resource
	public void setExcel_headDao(IExcel_headDao excel_headDao) {
		this.excel_headDao = excel_headDao;
	}
	
	
	@Override
	public List<Excel_head> queryList(Excel_headSearch search,PagerModel pagerModel){
		return excel_headDao.queryList(search, pagerModel);
	}
	
	public boolean saveExcel_heads(String excelId,List<Excel_head> excel_heads){
				excel_headDao.deleteByExcelId(excelId);
		
		return super.insertListEx(excel_heads)==excel_heads.size();
	}
}